package dancetiktokmodelmysql

import (
	"gorm.io/gorm"
	"time"
)

// DancePetBaseInfo 宠物基础信息表
type DancePetBaseInfo struct {
	Id         int64          `gorm:"primaryKey;autoIncrement;comment:id" json:"id"`                                       // 宠物id
	PetName    string         `json:"petName" gorm:"column:pet_name;type:varchar(256);not null;default:'';comment:宠物名称"`   // 宠物名称
	PetTypeId  int            `json:"petTypeId" gorm:"column:pet_type_id;type:bigint;default:0;not null;comment:宠物类型id"`   // 宠物类型id
	PetQuality int            `json:"petQuality" gorm:"column:pet_quality;type:bigint;default:0;not null;comment:宠物品质"`    // 1:普通 2:精英
	PetIcon    string         `json:"petIcon" gorm:"column:pet_icon;type:varchar(256);not null;default:'';comment:宠物icon"` // 宠物icon
	CreatedId  int64          `json:"created_id" gorm:"column:created_id;type:bigint;default:0;not null;comment:创建人id"`    // 创建人id
	UpdateId   int64          `json:"update_id" gorm:"column:update_id;type:bigint;default:0;not null;comment:更新人id"`      // 更新人id
	CreatedAt  time.Time      `json:"created_at" gorm:"column:created_at;type:datetime"`
	UpdatedAt  time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime"`
	DeletedAt  gorm.DeletedAt `gorm:"index;type:datetime" json:"-"`
}
